<template>
    <div>
        <div v-for="(value,name) in user" :key="name">
        属性名是：{{ name }} --- 属性值是：{{ value }}
        </div>
    </div>
    
</template>

<script setup>
import { reactive } from 'vue';
const user = reactive({id:11222333,name:'小王',gender:'男',age:19})
</script>